<?php




$dir = opendir ("olay/");


  while (false !== ($file = readdir($dir))) { 
if((substr($file,0,4)=="olay")&&(strchr($file,".") !=".php") && (substr($file,strlen($file)-1,1)!="~")) 

{

include ('olay/'.$file);
}
        
    }

?>